<template>
  <h3>userId:{{ userInfo.userId }}</h3>
  <h3>username:{{ userInfo.username}}</h3>
</template>

<script setup>
import useUserInfoStore from "@/store/userInfo";


import { getInfo } from "@/apis/getInfoJson";
const userInfo = useUserInfoStore();
getInfo("get", "info").then((res) => {
  userInfo.$patch({userId: res.data.userId})
  userInfo.$patch({username: res.data.username})
});


</script>
